import request from '@/utils/request'

export default {
  //医院设置列表
  getHospSetList(current,limit,searchObj){
    return request({
      url: `/admin/hosp/hospitalSet/findPage/${current}/${limit}`,
      method: 'post',
      data: searchObj //使用json进行传递
    })
  },
  //删除医院设置
  deleteHospSet(id) {
    return request ({
      url: `/admin/hosp/hospitalSet/${id}`,
      method: 'delete'
    })
  },
  //批量删除医院设置
  batchHospSet(idList){
    return request ({
      url: `/admin/hosp/hospitalSet/batchRemove`,
      method: 'delete',
      data:idList //使用json进行传递
    })
  },
  //根据状态，删除锁定和取消锁定
  batchHospSet(id,status){
    return request ({
      url: `/admin/hosp/hospitalSet/lock/${id}/${status}`,
      method: 'get',
    })
  },
  // 添加医院设置
  saveHospSet(hospitalSet){
    return request ({
      url: `/admin/hosp/hospitalSet/saveHospitalSet`,
      method: 'post',
      data:hospitalSet
    })
  },
  // 医院设置id查询功能
  getHostSet(id){
    return request ({
      url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
      method: 'get'
    })
  },
  // 医院设置根据id修改
  updateHospSet(hospitalSet){
    return request ({
      url: `/admin/hosp/hospitalSet/updateHospitalSet`,
      method: 'post',
      data:hospitalSet
    })
  },

} 
